﻿using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

using Azure.Web.Configuration;

namespace Azure.Web
{
    public class BlogApplication : HttpApplication
    {
        protected void Application_Start()
        {
            // this is done to allow for running the application outside of Azure and using an in memory database
            Container.RunAs<Stub>(); 

            // This will setup the application to use the container
            Container.Setup(ControllerBuilder.Current);
            
            Routing.Configure(RouteTable.Routes);
        }
    }
}